/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 *
 * http://www.gnu.org/copyleft/gpl.html
 */
package l1j.william;

import l1j.william.ItemMagic;

public class L1WilliamItemMagic {

	public static int checkItemId(final int itemId) {// TODO 判斷有沒有這個編號的道具
		final L1WilliamItemMagic Item_Magic = ItemMagic.getInstance()
				.getTemplate(itemId);

		if (Item_Magic == null) {
			return 0;
		}

		final int item_id = Item_Magic.getItemId();
		return item_id;
	}

	private final int _item_id;

	private final int _checkClass;

	private final int _checkItem;

	private final int _skill_id;

	private final int _removeItem;

	public L1WilliamItemMagic(final int item_id, final int checkClass,
			final int checkItem, final int skill_id, final int removeItem) {

		this._item_id = item_id;
		this._checkClass = checkClass;
		this._checkItem = checkItem;
		this._skill_id = skill_id;
		this._removeItem = removeItem;
	}

	public int getCheckClass() {
		return this._checkClass;
	}

	public int getCheckItem() {
		return this._checkItem;
	}

	public int getItemId() {
		return this._item_id;
	}

	public int getRemoveItem() {
		return this._removeItem;
	}

	public int getSkillId() {
		return this._skill_id;
	}
}
